// export const BASE_URL = "https://api.huoxingy.com/v1/stock/";

// 根据环境来选择api地址
let baseUrl = window.location.hostname;
console.log(baseUrl)
let API_BASE_URL = "";
let WS_URL ="";
switch (baseUrl) {
    case "localhost":
        API_BASE_URL = "https://staging-api.huoxingy.com/";
        WS_URL = "https://staging-ws.huoxingy.com/";
        break;
    case "192.168.0.27":
        API_BASE_URL = "https://staging-api.huoxingy.com/";
        WS_URL = "https://staging-ws.huoxingy.com/";
        break;
    case "staging-pos.huoxingy.com":
        API_BASE_URL = "https://staging-api.huoxingy.com/";
        WS_URL = "https://staging-ws.huoxingy.com/";
        break;
    case "prod-test-pos.huoxingy.com":
        API_BASE_URL = "https://prod-test-api.huoxingy.com/";
        WS_URL = "https://prod-test-ws.huoxingy.com/";
        break;
    case "staging-pos-shell.huoxingy.com":
        API_BASE_URL = 'https://staging-api.huoxingy.com/';
        WS_URL = "https://staging-ws.huoxingy.com/";
        break;
    case "prod-test-pos-shell.huoxingy.com":
        API_BASE_URL = 'https://prod-test-api.huoxingy.com/';
        WS_URL = "https://prod-test-ws.huoxingy.com/";
        break;
    default:
        API_BASE_URL = 'https://prod-api.huoxingy.com/';
        WS_URL = "https://prod-ws.huoxingy.com/";
        break;
}
// 


export const BASE_URL = "http://192.168.0.103:9090";
export const WS_API_URL = WS_URL;
export default API_BASE_URL;